const merchant = {
  state: {
    merchantType: 300, // 商户类型
    accountType: '',
    contactsType: '' // 证件类型选择法人类型
  },
  mutations: {
    SET_MERCHANT_TYPE: (state, type) => {
      state.merchantType = type
    },
    SET_CONTACTS_TYPE: (state, type) => {
      state.contactsType = type
    }
  },
  actions: {
    merchant_type_set({ commit }, type) {
      commit('SET_MERCHANT_TYPE', type)
    },
    contacts_type_set({ commit }, type) {
      commit('SET_CONTACTS_TYPE', type)
    }
  }
}

export default merchant
